import request from "@/utils/request";

// 查询维保类目列列表
export function listWbClassify(query) {
  return request({
    url: "/wb/wbClassify/list",
    method: "get",
    params: query,
  });
}
export function listWbClassifys(query) {
  return request({
    url: "/wb/wbClassify/selectList",
    method: "get",
    params: query,
  });
}

// 查询维保类目列详细
export function getWbClassify(id) {
  return request({
    url: "/wb/wbClassify/" + id,
    method: "get",
  });
}

// 新增维保类目列
export function addWbClassify(data) {
  return request({
    url: "/wb/wbClassify",
    method: "post",
    data: data,
  });
}

// 修改维保类目列
export function updateWbClassify(data) {
  return request({
    url: "/wb/wbClassify",
    method: "put",
    data: data,
  });
}

// 删除维保类目列
export function delWbClassify(id) {
  return request({
    url: "/wb/wbClassify/" + id,
    method: "delete",
  });
}
